import 'package:dk_flutter_base/src/ui/ui_model/select_model.dart';
import 'package:dk_flutter_base/src/ui/widget/dk_app_bar.dart';
import 'package:dk_flutter_base/src/ui/widget/dk_bottom_dialog.dart';
import 'package:dk_flutter_base/src/ui/widget/dk_bottom_sheet_dialog.dart';
import 'package:dk_flutter_base/src/ui/widget/dk_center_dialog.dart';
import 'package:dk_flutter_base/src/ui/widget/dk_pop_menu.dart';
import 'package:dk_flutter_base/src/ui/widget/dk_widget_container.dart';
import 'package:dk_flutter_base/src/ui/widget/tip_dialog_widget.dart';
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';

import 'package:dk_flutter_base/src/ui/widget/trans_select_bottom.dart';

class TestPopWidget extends StatefulWidget {
  @override
  State<TestPopWidget> createState() {
    return PopSate();
  }
}

class PopSate extends State<TestPopWidget> {

  @override
  void initState() {
    super.initState();
  }

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        elevation: 0.0,
        title: Text('弹窗'),
      ),
      body: Container(
        color: Colors.red,
        height: 30,
        child: InkWell(
          child: Text("111111"),
          onTap: () {
            Navigator.push(context, DkPopupRoute(child: DkPopup(
              child: Text("222222222"),
              left: 16,
              top: 230,
              onClick: (){
                print("exit");
              },
            ),),);
          },
        ),
      ),
    );
  }

/*void showSheet(BuildContext context, Widget listView) {
    showBottomSheet(
      context: context,
      builder: (BuildContext context) {
        return Container(
          child: listView,
          height: 300,
        );
      },
    );
  }

  void showSheetPage(BuildContext context, ListView listView) {
    showModalBottomSheet(
        context: context,
        builder: (BuildContext context) {
          Container(
            child: listView,
            height: 300,
          );
        });
  }*/
}
